//
//  WLCommonTool.h
//  WanLian
//
//  Created by muzhuang on 2018/9/10.
//  Copyright © 2018年 wanlian. All rights reserved.
//

#import <Foundation/Foundation.h>
extern NSString* const FILE_SOCKET_HOST_ROUTER;
extern NSString* const FILE_SOCKET_HOST_REMOTE;
extern NSString* const HTTP_HOST_ROUTER;
extern NSString* const HTTP_HOST_REMOTE;
extern NSString* const HTTP_HOST_WEB;




@interface WLCommonTool : NSObject
+ (NSString *)formateURLString:(NSString *)urlStr;
+ (BOOL)judgeNeedShowSettingAlert;
+ (long)getScoketPort;
/** 获取网页的真是host */
+ (NSString *)getWebHost;
/**获取真是路径*/
+ (NSString *)getRealURLWithUrlStr:(NSString *)url;
+ (BOOL)isConnectionAvailable;
+ (BOOL)isConnectWIFI;
/** 展示是否跳转到设置页面的提问 */
+ (void)showAlrtToSettingWithTitle:(NSString *)title message:(NSString *)message cancel:(NSString *)cancelStr confirmStr:(NSString *)confirmStr;

/**
 手机号验证
 
 @param mobileNum 手机号
 @return 返回对错
 */
+ (BOOL)isMobileNumber:(NSString *)mobileNum;

/**
 邮箱验证

 @param email 邮箱
 @return 返回对错
 */
+ (BOOL)isValidateEmail:(NSString *)email;

+ (BOOL)isIPAddress:(NSString *)strIP;

+ (NSString *)strAddBlankFormatter:(NSString *)originStr;

+ (UIFont *)fontTypePingFangSCRegular:(CGFloat)fontSize;

+ (UIFont *)fontTypePingFangSCMedium:(CGFloat)fontSize;

+ (UIFont *)fontTypePingFangSCSemibold:(CGFloat)fontSize;

+ (NSString *)getWifiSSID;
+ (NSString *)getWifiBSSID;
+ (BOOL)isConnectedTianYiLian;
+ (NSString *)getHost;
+ (NSString *)getFileUpDownloadHost;
+ (NSString *)getUploadFilePath;
+ (NSString *)getDownloadFilePath;

/**
 根据颜色返回图片

 @param color 颜色
 @return 图片
 */
+ (UIImage*)createImageWithColor:(UIColor*)color;

+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;

+ (UIImage *)gradientColorImageSize:(CGSize)imgSize;

+ (void)addGradientColor:(UIView *)currentView fromColor:(UIColor *)startColor toColor:(UIColor *)endColor;

+ (NSString *)timeFormatted:(long long)totalSeconds;

+ (NSString *)timeNoHMS:(long long)totalSeconds;
+ (NSString *)timeToYMDHMS:(long long)totalSeconds;
+ (NSString *)timeToSlantYMDHMS:(long long)totalSeconds;
+ (NSString *)timeIntervalDescription:(NSTimeInterval)timeSeconds;
+ (NSString *)strToLoginTime:(long)time;

+ (NSString *)mStorageChangeToStr:(CGFloat)fileSize;

+ (void)goToLogin;
+ (void)userLogout;

+ (void)versionUpdateCheck;

+ (void)pushToBingFlowController;

+ (void)queryUserInfo;
+ (void)fourceGoToLogin;
/**
 * 验证是否为钱包地址
 * 0x开头
 * 40位16进制
 */
+ (BOOL)evalueateETCWalletAccount:(NSString *)accountStr;

+ (BOOL)evalueateINTAccount:(NSString *)accountStr;
/** 获取积分描述 */
+(NSMutableAttributedString *)getINTDescriptionWithINTNum:(NSString *)INTScore;
+ (NSString *)getAppVersion;
@end
